home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000042_fdc@columbia.edu_Thu May 1 17:33:31 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  66 lines

  1. Article: 14257 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Changed behavior of receive/transmit move-to
  6. Date: 1 May 2003 17:33:17 -0400
  7. Organization: Columbia University
  8. Lines: 49
  9. Message-ID: <b8s3qt$bkm$1@watsol.cc.columbia.edu>
  10. References: <b8rfll$kfv$1@cpimail.cpicorp.com> <b8rkdi$mo0$1@watsol.cc.columbia.edu> <3EB182CB.8000502@nyc.rr.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1051824799 18679 128.59.39.139 (1 May 2003 21:33:19 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 1 May 2003 21:33:19 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14257
  16.  
  17. In article <3EB182CB.8000502@nyc.rr.com>,
  18. Jeffrey Altman [Road Runner NYC] <jaltman2@nyc.rr.com> wrote:
  19. : There were several issues:
  20. :   * a SET command that accepts out output directory will fail if the
  21. :     directory does not exist when the command is executed.  Otherwise
  22. :     the command will fail.
  23. I changed the SET { SEND, RECEIVE } MOVE-TO to fail only if an absolute
  24. name was given and it didn't exist.  A relative name is not checked until
  25. move time.
  26.  
  27. :   * what should happen if the relative MOVE-TO directory does not exist
  28. :     at the time of the move?
  29. :     - Should the file transfer fail?  I think so.
  30. It did and it still does.
  31.  
  32. :     - Should the directory be created on the fly?  Some people
  33. :       might want this option.
  34. :     - Should the move only take place if the relative directory exists?
  35. :       Others might prefer this choice.
  36. I haven't done anything about these.
  37.  
  38. : The concern I have with Frank's approach is that it is going to break
  39. : existing scripts by adding another layer of string evaluation.  On 
  40. : Windows this is going to become an even greater nightmare.
  41. Turns out no changes were needed here.  SET { SEND, RECEIVE } MOVE-TO
  42. did not need to use deferred evaluation of embedded variables, since we're
  43. dealing with names of directories which must already exist (at least for
  44. now).  SET { SEND, RECEIVE } RENAME-TO already deferred evaluation of
  45. embedded variables, so it does not make sense to change it.  Except that it
  46. was totally broken anyway (it always got a parse error), and that's just
  47. been fixed.
  48.  
  49. : I think there is a better solution.  Kermit already supports on_open, 
  50. : on_close, and on_exit macros.  I propose that we simply add support for 
  51. : a new on_cd macro...
  52. :
  53. I'll add this to my to-do list and/or revisit it if today's changes are
  54. not sufficient.  Today's version is here:
  55.  
  56.   http://www.columbia.edu/kermit/ckdaily.html
  57.  
  58. - Frank
  59.